/*
 * PractiseDialog.cs - Wordtrainer
 * 
 * Copyright (C) 1998-2007 Markus Kilås
 *               
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 *
 * Authors:
 *   Markus Kilås <markus@markuspage.com>
 * 
 */

using System;

namespace WtSharp
{
	
	
	public partial class PractiseDialog : Gtk.Dialog
	{
		public const int CANCEL = 0;
		public const int FOREIGN = 1;
		public const int TRANSLATION = 2;
		private int m_Selected = CANCEL;
		
		public PractiseDialog(Gtk.Window parent) : base("Choose what to practise writing:", parent, Gtk.DialogFlags.Modal)
		{
			this.Build();
		}
		
		public int Selected
		{
			get {
				return m_Selected;
			}
		}

		protected virtual void OnButtonFClicked (object sender, System.EventArgs e)
		{
			m_Selected = FOREIGN;
			Destroy();
		}

		protected virtual void OnButtonTClicked (object sender, System.EventArgs e)
		{
			m_Selected = TRANSLATION;
			Destroy();
		}

		protected virtual void OnClose (object sender, System.EventArgs e)
		{
			Destroy();
		}

		protected virtual void OnButton40Clicked (object sender, System.EventArgs e)
		{
			Destroy();
		}

		protected virtual void OnButtonCancelClicked (object sender, System.EventArgs e)
		{
			Destroy();
		}
		
	}
}
